<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { getCookie } from './utils/cookie'
export default {
  created() {
    if (getCookie('token')) {
    } else {
      this.$router.push('/login')
    }
  }
}
</script>

<style>
</style>
